package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class FinalData implements Serializable {
    private String s_code;

    private String s_name;

    private Date open_day;

    private String market;

    private String industry;

    private String area;

    private Date end_date;

    private Date preyear_end_date;

    private Double roe;

    private Double debt_to_assets;

    private Double yoy_sales;

    private Double yoy_dedu_np;

    private static final long serialVersionUID = 1L;

    public String getS_code() {
        return s_code;
    }

    public void setS_code(String s_code) {
        this.s_code = s_code == null ? null : s_code.trim();
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name == null ? null : s_name.trim();
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    public String getMarket() {
        return market;
    }

    public void setMarket(String market) {
        this.market = market == null ? null : market.trim();
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry == null ? null : industry.trim();
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public Date getEnd_date() {
        return end_date;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public Date getPreyear_end_date() {
        return preyear_end_date;
    }

    public void setPreyear_end_date(Date preyear_end_date) {
        this.preyear_end_date = preyear_end_date;
    }

    public Double getRoe() {
        return roe;
    }

    public void setRoe(Double roe) {
        this.roe = roe;
    }

    public Double getDebt_to_assets() {
        return debt_to_assets;
    }

    public void setDebt_to_assets(Double debt_to_assets) {
        this.debt_to_assets = debt_to_assets;
    }

    public Double getYoy_sales() {
        return yoy_sales;
    }

    public void setYoy_sales(Double yoy_sales) {
        this.yoy_sales = yoy_sales;
    }

    public Double getYoy_dedu_np() {
        return yoy_dedu_np;
    }

    public void setYoy_dedu_np(Double yoy_dedu_np) {
        this.yoy_dedu_np = yoy_dedu_np;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FinalData other = (FinalData) that;
        return (this.getS_code() == null ? other.getS_code() == null : this.getS_code().equals(other.getS_code()))
            && (this.getS_name() == null ? other.getS_name() == null : this.getS_name().equals(other.getS_name()))
            && (this.getOpen_day() == null ? other.getOpen_day() == null : this.getOpen_day().equals(other.getOpen_day()))
            && (this.getMarket() == null ? other.getMarket() == null : this.getMarket().equals(other.getMarket()))
            && (this.getIndustry() == null ? other.getIndustry() == null : this.getIndustry().equals(other.getIndustry()))
            && (this.getArea() == null ? other.getArea() == null : this.getArea().equals(other.getArea()))
            && (this.getEnd_date() == null ? other.getEnd_date() == null : this.getEnd_date().equals(other.getEnd_date()))
            && (this.getPreyear_end_date() == null ? other.getPreyear_end_date() == null : this.getPreyear_end_date().equals(other.getPreyear_end_date()))
            && (this.getRoe() == null ? other.getRoe() == null : this.getRoe().equals(other.getRoe()))
            && (this.getDebt_to_assets() == null ? other.getDebt_to_assets() == null : this.getDebt_to_assets().equals(other.getDebt_to_assets()))
            && (this.getYoy_sales() == null ? other.getYoy_sales() == null : this.getYoy_sales().equals(other.getYoy_sales()))
            && (this.getYoy_dedu_np() == null ? other.getYoy_dedu_np() == null : this.getYoy_dedu_np().equals(other.getYoy_dedu_np()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getS_code() == null) ? 0 : getS_code().hashCode());
        result = prime * result + ((getS_name() == null) ? 0 : getS_name().hashCode());
        result = prime * result + ((getOpen_day() == null) ? 0 : getOpen_day().hashCode());
        result = prime * result + ((getMarket() == null) ? 0 : getMarket().hashCode());
        result = prime * result + ((getIndustry() == null) ? 0 : getIndustry().hashCode());
        result = prime * result + ((getArea() == null) ? 0 : getArea().hashCode());
        result = prime * result + ((getEnd_date() == null) ? 0 : getEnd_date().hashCode());
        result = prime * result + ((getPreyear_end_date() == null) ? 0 : getPreyear_end_date().hashCode());
        result = prime * result + ((getRoe() == null) ? 0 : getRoe().hashCode());
        result = prime * result + ((getDebt_to_assets() == null) ? 0 : getDebt_to_assets().hashCode());
        result = prime * result + ((getYoy_sales() == null) ? 0 : getYoy_sales().hashCode());
        result = prime * result + ((getYoy_dedu_np() == null) ? 0 : getYoy_dedu_np().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", s_code=").append(s_code);
        sb.append(", s_name=").append(s_name);
        sb.append(", open_day=").append(open_day);
        sb.append(", market=").append(market);
        sb.append(", industry=").append(industry);
        sb.append(", area=").append(area);
        sb.append(", end_date=").append(end_date);
        sb.append(", preyear_end_date=").append(preyear_end_date);
        sb.append(", roe=").append(roe);
        sb.append(", debt_to_assets=").append(debt_to_assets);
        sb.append(", yoy_sales=").append(yoy_sales);
        sb.append(", yoy_dedu_np=").append(yoy_dedu_np);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}